package com.ujiuye.dao;

import com.ujiuye.entity.User;

import java.util.List;

public interface UserDao {

    User checkUser(String username, String password);

    int totalCount(String name);

    List<User> selectAllUser(int startIndex, int pageSize, String username);

    int addUser(User user);

    int delAll(String uids);

    int updateUser(User user);


    User checkPhone(String tel);


    int registerUser(String name, String password, String phone);


    User beforeLogin(String password, String phone);

}
